package readinglist;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

@EntityScan("readinglist")
public interface ReadingListRepository extends JpaRepository<Book, Long> {
//    List<Book> findByReader(String reader);
    ///////////////////////新的
    List<Book> findByReader(Reader reader);
}